//
//  STTools_LocationManger.h
//  KunLun
//
//  Created by coder on 2017/11/29.
//  Copyright © 2017年 stoneobs@icloud.com. All rights reserved.
//  Privacy - Location When In Use Usage Description   想使用您的位置来获取附近的人

#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
#import "STTools_Error.h"
typedef void(^STTools_LocationMangerDidLocation_stoneobs_handle)(STTools_Error * error,CLPlacemark *placemark);
/************定位管理器，使用期间******************/
@interface STTools_LocationManger : NSObject
//当前位置信息
@property(nonatomic,strong)CLPlacemark                  *currentPlacemark;
@property(nonatomic, strong) NSString                     *longitude;/**< 经度 */
@property(nonatomic, strong) NSString                     *latitude;/**< 纬度 */
+ (STTools_LocationManger*)defult;
- (NSDictionary*)stoneobs_fun_lastPlacemark;//上次定位的缓存位置,只能字典，不能生成对象
- (NSString*)stoneobs_fun_st_lastProvence;
- (NSString*)stoneobs_fun_st_lastCity;
- (NSString*)stoneobs_fun_st_lastSubLocality;
//更新储存的位置信息,需要手动调用
- (void)stoneobs_fun_st_updatePlacemarkWith:(CLPlacemark*)lastPalcemark;
//开始定位，定位成功自动结束
- (void)stoneobs_fun_st_startUpdatingLocationHande:(STTools_LocationMangerDidLocation_stoneobs_handle)handel;
@end
